﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using Think.Lenovo.Com.Models;
using Think.Lenovo.Com.DataAccess;
namespace Think.Lenovo.Com.Controllers
{
    public class UserLevelController:Controller
    {
        /// <summary>
        /// 返回所有用户级别
        /// </summary>
        /// <returns></returns>
        public ActionResult GetUserLevels() {
            UserLevel u = new UserLevel();
            LinkedList<UserLevelModel> list = u.GetAllUserLevels();
            JsonResult jr = new JsonResult();
            jr.Data = list;
            return jr;
        }
    }
}
